home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch21 / 21fig05.wrl < prev   
Text File  |  1996-09-23  |  1KB  |  57 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.         PointLight {
  8.             location 3.0 3.0 3.0
  9.             ambientIntensity 0.2
  10.         },
  11.         Shape {
  12.             appearance Appearance {
  13.                 material Material {
  14.                     ambientIntensity 0.4
  15.                     diffuseColor 0.22 0.15 0.0
  16.                     specularColor 0.71 0.70 0.56
  17.                     shininess 0.16
  18.                 }
  19.             }
  20.             geometry Extrusion {
  21.                 creaseAngle 1.57
  22.                 endCap FALSE
  23.                 solid  FALSE
  24.                 crossSection [
  25.                 # Circle
  26.                      1.00  0.00,   0.92 -0.38,
  27.                      0.71 -0.71,   0.38 -0.92,
  28.                      0.00 -1.00,  -0.38 -0.92,
  29.                     -0.71 -0.71,  -0.92 -0.38,
  30.                     -1.00 -0.00,  -0.92  0.38,
  31.                     -0.71  0.71,  -0.38  0.92,
  32.                      0.00  1.00,   0.38  0.92,
  33.                      0.71  0.71,   0.92  0.38,
  34.                      1.00  0.00
  35.                 ]
  36.                 spine [
  37.                 # Straight-line
  38.                     0.0 0.0 0.0,  0.0 0.4 0.0,
  39.                     0.0 0.8 0.0,  0.0 1.2 0.0,
  40.                     0.0 1.6 0.0,  0.0 2.0 0.0,
  41.                     0.0 2.4 0.0,  0.0 2.8 0.0,
  42.                     0.0 3.2 0.0,  0.0 3.6 0.0,
  43.                     0.0 4.0 0.0
  44.                 ]
  45.                 scale [
  46.                     1.8  1.8,  1.95 1.95,
  47.                     2.0  2.0,  1.95 1.95
  48.                     1.8  1.8,  1.5  1.5
  49.                     1.2  1.2,  1.05 1.05,
  50.                     1.0  1.0,  1.05  1.05,
  51.                     1.15 1.15,
  52.                 ]
  53.             }
  54.         }
  55.     ]
  56. }
  57.